package com.atguigu.orderservice.client;

import com.atguigu.orderservice.entity.vo.CourseInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu")
public interface CourseClient {

    // 根据课程id来获取课程信息
    @GetMapping("/eduservice/course/getDto/{courseId}")
    public CourseInfoVo getCourseInfoDto(@PathVariable("courseId") String courseId);

}
